home *** CD-ROM | disk | FTP | other *** search
Wrap
Java Source | 2005-11-07 | 19.0 KB | 359 lines
// _LicensePrefs_EOArchive.java // Generated by EnterpriseObjects palette at Mittwoch, 18. August 2004 15:23 Uhr Europe/Berlin import com.webobjects.eoapplication.*; import com.webobjects.eocontrol.*; import com.webobjects.eointerface.*; import com.webobjects.eointerface.swing.*; import com.webobjects.foundation.*; import java.awt.*; import javax.swing.*; import javax.swing.border.*; import javax.swing.table.*; import javax.swing.text.*; public class _LicensePrefs_EOArchive extends com.webobjects.eoapplication.EOArchive { IBHelpConnector _iBHelpConnector0; OPCharFilterFormatter _oPCharFilterFormatter0; OPKeycodeFormatter _oPKeycodeFormatter0; com.webobjects.eointerface.swing.EOFrame _eoFrame0; com.webobjects.eointerface.swing.EOTextField _nsTextField0, _nsTextField1, _nsTextField2, _nsTextField3, _nsTextField4, _nsTextField5, _nsTextField6; javax.swing.JButton _nsButton0, _nsButton1, _nsButton2; javax.swing.JComboBox _popup0; javax.swing.JPanel _nsView0; public _LicensePrefs_EOArchive(Object owner, NSDisposableRegistry registry) { super(owner, registry); } protected void _construct() { Object owner = _owner(); EOArchive._ObjectInstantiationDelegate delegate = (owner instanceof EOArchive._ObjectInstantiationDelegate) ? (EOArchive._ObjectInstantiationDelegate)owner : null; Object replacement; super._construct(); _nsTextField6 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField111111"); _iBHelpConnector0 = (IBHelpConnector)_registered(new IBHelpConnector(), ""); _nsButton2 = (javax.swing.JButton)_registered(new javax.swing.JButton(""), "NSButton31"); _popup0 = (javax.swing.JComboBox)_registered(new javax.swing.JComboBox(), "NSPopUpButton"); if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "licenseField")) != null)) { _nsTextField5 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement; _replacedObjects.setObjectForKey(replacement, "_nsTextField5"); } else { _nsTextField5 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField24"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent.nextFocusableComponent.nextFocusableComponent")) != null)) { _nsButton1 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JButton)replacement; _replacedObjects.setObjectForKey(replacement, "_nsButton1"); } else { _nsButton1 = (javax.swing.JButton)_registered(new javax.swing.JButton("Check Code"), "NSButton111"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.formatter")) != null)) { _oPCharFilterFormatter0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (OPCharFilterFormatter)replacement; _replacedObjects.setObjectForKey(replacement, "_oPCharFilterFormatter0"); } else { _oPCharFilterFormatter0 = (OPCharFilterFormatter)_registered(new OPCharFilterFormatter(), "OPCharFilterFormatter"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent.formatter")) != null)) { _oPKeycodeFormatter0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (OPKeycodeFormatter)replacement; _replacedObjects.setObjectForKey(replacement, "_oPKeycodeFormatter0"); } else { _oPKeycodeFormatter0 = (OPKeycodeFormatter)_registered(new OPKeycodeFormatter(), "OPKeycodeFormatter"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent")) != null)) { _nsTextField4 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement; _replacedObjects.setObjectForKey(replacement, "_nsTextField4"); } else { _nsTextField4 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField1"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "checkButton.nextFocusableComponent")) != null)) { _nsTextField3 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement; _replacedObjects.setObjectForKey(replacement, "_nsTextField3"); } else { _nsTextField3 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "nameFieldCaption")) != null)) { _nsTextField2 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement; _replacedObjects.setObjectForKey(replacement, "_nsTextField2"); } else { _nsTextField2 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField2"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "codeFieldCaption")) != null)) { _nsTextField1 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement; _replacedObjects.setObjectForKey(replacement, "_nsTextField1"); } else { _nsTextField1 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField21"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "licenseFieldCaption")) != null)) { _nsTextField0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOTextField)replacement; _replacedObjects.setObjectForKey(replacement, "_nsTextField0"); } else { _nsTextField0 = (com.webobjects.eointerface.swing.EOTextField)_registered(new com.webobjects.eointerface.swing.EOTextField(), "NSTextField23"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_firstKeyView.nextFocusableComponent.nextFocusableComponent")) != null)) { _nsButton0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (javax.swing.JButton)replacement; _replacedObjects.setObjectForKey(replacement, "_nsButton0"); } else { _nsButton0 = (javax.swing.JButton)_registered(new javax.swing.JButton("Get Code\u2026"), "NSButton"); } if ((delegate != null) && ((replacement = delegate.objectForOutletPath(this, "_window")) != null)) { _eoFrame0 = (replacement == EOArchive._ObjectInstantiationDelegate.NullObject) ? null : (com.webobjects.eointerface.swing.EOFrame)replacement; _replacedObjects.setObjectForKey(replacement, "_eoFrame0"); } else { _eoFrame0 = (com.webobjects.eointerface.swing.EOFrame)_registered(new com.webobjects.eointerface.swing.EOFrame(), "LicensePane"); } _nsView0 = (JPanel)_eoFrame0.getContentPane(); } protected void _awaken() { super._awaken(); _popup0.setModel(new javax.swing.DefaultComboBoxModel()); _popup0.addItem(""); _popup0.addItem("Cut"); _popup0.addItem("Copy"); _popup0.addItem("Paste"); _popup0.addItem("Delete"); _popup0.addItem("Select All"); if (_replacedObjects.objectForKey("_nsTextField5") == null) { _connect(_owner(), _nsTextField5, "licenseField"); } if (_replacedObjects.objectForKey("_nsButton1") == null) { _connect(_owner(), _nsButton1, "checkButton"); } _nsButton1.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "checkLicense", _nsButton1), "")); if (_replacedObjects.objectForKey("_nsTextField3") == null) { _connect(_owner(), _nsTextField3, "_firstKeyView"); } if (_replacedObjects.objectForKey("_nsTextField3") == null) { _connect(_owner(), _nsTextField3, "_initialKeyView"); } _nsTextField3.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "checkLicense", _nsTextField3), "")); if (_replacedObjects.objectForKey("_nsTextField4") == null) { _connect(_owner(), _nsTextField4, "codeField"); } _nsTextField4.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "checkLicense", _nsTextField4), "")); if (_replacedObjects.objectForKey("_nsTextField3") == null) { _connect(_owner(), _nsTextField3, "nameField"); } if (_replacedObjects.objectForKey("_nsTextField2") == null) { _connect(_owner(), _nsTextField2, "nameFieldCaption"); } if (_replacedObjects.objectForKey("_nsTextField1") == null) { _connect(_owner(), _nsTextField1, "codeFieldCaption"); } if (_replacedObjects.objectForKey("_nsTextField0") == null) { _connect(_owner(), _nsTextField0, "licenseFieldCaption"); } if (_replacedObjects.objectForKey("_nsButton0") == null) { _connect(_owner(), _nsButton0, "_lastKeyView"); } if (_replacedObjects.objectForKey("_nsButton0") == null) { _connect(_owner(), _nsButton0, "buyButton"); } if (_replacedObjects.objectForKey("_eoFrame0") == null) { _connect(_owner(), _eoFrame0, "_window"); } _nsButton0.addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(_owner(), "buyAction", _nsButton0), "")); } protected void _init() { super._init(); .addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(null, "copy", ), "")); .addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(null, "delete", ), "")); .addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(null, "selectAll", ), "")); .addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(null, "cut", ), "")); .addActionListener((com.webobjects.eointerface.swing.EOControlActionAdapter)_registered(new com.webobjects.eointerface.swing.EOControlActionAdapter(null, "paste", ), "")); _setFontForComponent(_nsTextField6, "Lucida Grande", 10, Font.PLAIN); _nsTextField6.setEditable(false); _nsTextField6.setOpaque(false); _nsTextField6.setText("Enter your registration name and code you got via email. If you do not have a code yet, you can get one online from the Objectpark web store."); _nsTextField6.setHorizontalAlignment(javax.swing.JTextField.LEFT); _nsTextField6.setSelectable(false); _nsTextField6.setEnabled(true); _nsTextField6.setBorder(null); _setFontForComponent(_nsButton2, "Lucida Grande", 11, Font.PLAIN + Font.BOLD); _nsButton2.setMargin(new Insets(0, 2, 0, 2)); _setFontForComponent(_popup0, "Lucida Grande", 13, Font.PLAIN); if (_replacedObjects.objectForKey("_nsTextField5") == null) { _setFontForComponent(_nsTextField5, "Lucida Grande", 13, Font.PLAIN); _nsTextField5.setEditable(false); _nsTextField5.setOpaque(false); _nsTextField5.setText("Standard (unregistered)"); _nsTextField5.setHorizontalAlignment(javax.swing.JTextField.CENTER); _nsTextField5.setSelectable(false); _nsTextField5.setEnabled(true); _nsTextField5.setBorder(null); } if (_replacedObjects.objectForKey("_nsButton0") == null) { _connect(_nsButton0, _nsButton1, "nextFocusableComponent"); } if (_replacedObjects.objectForKey("_nsButton1") == null) { _setFontForComponent(_nsButton1, "Lucida Grande", 13, Font.PLAIN); _nsButton1.setMargin(new Insets(0, 2, 0, 2)); } if (_replacedObjects.objectForKey("_nsButton1") == null) { _connect(_nsButton1, _nsTextField3, "nextFocusableComponent"); } if (_replacedObjects.objectForKey("_nsTextField3") == null) { _connect(_nsTextField3, _oPCharFilterFormatter0, "formatter"); } if (_replacedObjects.objectForKey("_nsTextField4") == null) { _connect(_nsTextField4, _nsButton0, "nextFocusableComponent"); } if (_replacedObjects.objectForKey("_nsTextField4") == null) { _connect(_nsTextField4, _oPKeycodeFormatter0, "formatter"); } if (_replacedObjects.objectForKey("_nsTextField4") == null) { _setFontForComponent(_nsTextField4, "Courier", 13, Font.PLAIN); _nsTextField4.setEditable(true); _nsTextField4.setOpaque(true); _nsTextField4.setText(""); _nsTextField4.setHorizontalAlignment(javax.swing.JTextField.CENTER); _nsTextField4.setSelectable(true); _nsTextField4.setEnabled(true); } if (_replacedObjects.objectForKey("_nsTextField3") == null) { _connect(_nsTextField3, _nsTextField4, "nextFocusableComponent"); } if (_replacedObjects.objectForKey("_nsTextField3") == null) { _setFontForComponent(_nsTextField3, "Courier", 12, Font.PLAIN); _nsTextField3.setEditable(true); _nsTextField3.setOpaque(true); _nsTextField3.setText(""); _nsTextField3.setHorizontalAlignment(javax.swing.JTextField.CENTER); _nsTextField3.setSelectable(true); _nsTextField3.setEnabled(true); } if (_replacedObjects.objectForKey("_nsTextField2") == null) { _setFontForComponent(_nsTextField2, "Lucida Grande", 13, Font.PLAIN); _nsTextField2.setEditable(false); _nsTextField2.setOpaque(false); _nsTextField2.setText("Name:"); _nsTextField2.setHorizontalAlignment(javax.swing.JTextField.RIGHT); _nsTextField2.setSelectable(false); _nsTextField2.setEnabled(true); _nsTextField2.setBorder(null); } if (_replacedObjects.objectForKey("_nsTextField1") == null) { _setFontForComponent(_nsTextField1, "Lucida Grande", 13, Font.PLAIN); _nsTextField1.setEditable(false); _nsTextField1.setOpaque(false); _nsTextField1.setText("Code:"); _nsTextField1.setHorizontalAlignment(javax.swing.JTextField.RIGHT); _nsTextField1.setSelectable(false); _nsTextField1.setEnabled(true); _nsTextField1.setBorder(null); } if (_replacedObjects.objectForKey("_nsTextField0") == null) { _setFontForComponent(_nsTextField0, "Lucida Grande", 13, Font.PLAIN); _nsTextField0.setEditable(false); _nsTextField0.setOpaque(false); _nsTextField0.setText("Version:"); _nsTextField0.setHorizontalAlignment(javax.swing.JTextField.RIGHT); _nsTextField0.setSelectable(false); _nsTextField0.setEnabled(true); _nsTextField0.setBorder(null); } if (_replacedObjects.objectForKey("_nsButton0") == null) { _setFontForComponent(_nsButton0, "Lucida Grande", 13, Font.PLAIN); _nsButton0.setMargin(new Insets(0, 2, 0, 2)); } if (!(_nsView0.getLayout() instanceof EOViewLayout)) { _nsView0.setLayout(new EOViewLayout()); } _nsButton0.setSize(144, 26); _nsButton0.setLocation(94, 146); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton0, EOViewLayout.MinYMargin); _nsView0.add(_nsButton0); _nsTextField3.setSize(296, 22); _nsTextField3.setLocation(96, 40); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField3, EOViewLayout.MinYMargin); _nsView0.add(_nsTextField3); _nsTextField0.setSize(80, 17); _nsTextField0.setLocation(12, 11); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField0, EOViewLayout.MinYMargin); _nsView0.add(_nsTextField0); _nsTextField4.setSize(296, 24); _nsTextField4.setLocation(96, 70); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField4, EOViewLayout.MinYMargin); _nsView0.add(_nsTextField4); _nsTextField5.setSize(283, 17); _nsTextField5.setLocation(93, 11); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField5, EOViewLayout.MinYMargin); _nsView0.add(_nsTextField5); _nsTextField1.setSize(79, 17); _nsTextField1.setLocation(12, 72); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField1, EOViewLayout.MinYMargin); _nsView0.add(_nsTextField1); _nsTextField2.setSize(79, 17); _nsTextField2.setLocation(12, 42); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField2, EOViewLayout.MinYMargin); _nsView0.add(_nsTextField2); _popup0.setSize(41, 26); _popup0.setLocation(41, 146); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_popup0, EOViewLayout.MinYMargin); _nsView0.add(_popup0); _nsButton2.setSize(25, 25); _nsButton2.setLocation(402, 148); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton2, EOViewLayout.MinYMargin); _nsView0.add(_nsButton2); _nsButton1.setSize(150, 26); _nsButton1.setLocation(245, 146); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsButton1, EOViewLayout.MinYMargin); _nsView0.add(_nsButton1); _nsTextField6.setSize(302, 39); _nsTextField6.setLocation(93, 102); ((EOViewLayout)_nsView0.getLayout()).setAutosizingMask(_nsTextField6, EOViewLayout.MinYMargin); _nsView0.add(_nsTextField6); if (_replacedObjects.objectForKey("_eoFrame0") == null) { _nsView0.setSize(436, 183); _eoFrame0.setTitle("License"); _eoFrame0.setLocation(14, 553); _eoFrame0.setSize(436, 183); } } }